package com.example.rabbitmqspringboot.constant;

/**
 * @auther teacher
 * @date 2024/4/2
 * @project rabbitmqSpringBoot
 */


public class DelayQueueOneConstant {
    //普通交换机
    public static final String NORMAL_EXCHANGE="ne";
    //死信交换机
    public static final String DEAD_EXCHANGE="de";
    //普通队列两个
    public static final String NORMAL_QUEUE_A="nqA";
    public static final String NORMAL_QUEUE_B="nqB";
    //死信队列
    public static final String DEAD_QUEUE="dq";
    //普通路由两个
    public static final String NORMAL_ROUTING_A="nrA";
    public static final String NORMAL_ROUTING_B="nrB";
    //死信路由
    public static final String DEAD_ROUTING="dr";

    //声明队列c优化ttl设置 由生产者决定
    public static final String NORMAL_QUEUE_C = "nqC";
    public static final String NORMAL_ROUTING_C = "nrC";



    /**
     * 延迟队列实现延迟消息
     */
    public static final String DELAY_QUEUE = "delay.queue";
    public static final String DELAY_EXCHANGE = "delay.exchange";
    public static final String DELAY_ROUTING_KEY = "delay.routingKey";
    //交换机类型为延迟交换机
    public static final String DELAY_EXCHANGE_TYPE = "x-delayed-message";













}
